package com.westcom.vulb.activity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.view.View;
import android.view.View.*;

public class EntranceActivity extends BasicActivity 
{
	private Button m_btn_reg = null;
	private Button m_btn_login = null;
	private Button m_btn_facebook = null;
    @Override
    protected void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.entrance_activity_layout);
        OnClickListener mclicklistener = new OnClickListener()
        {
			@Override
			public void onClick(View v) 
			{
				// TODO Auto-generated method stub
				switch(v.getId())
				{
					case R.id.btn_entrance_register:
					{
						Intent intent = new Intent();
				        intent.putExtra("categoryname","Liulong");    
				        intent.setClass(EntranceActivity.this, RegisterActivity.class);
				        startActivity(intent);
						
					}break;
					case R.id.btn_entrance_login:
					{
						Intent intent = new Intent();  
				        intent.setClass(EntranceActivity.this, LoginActivity.class);
				        startActivity(intent);
					}break;
					case R.id.btn_entrance_facebook:
					{
					}break;
					default:{}break;
				}
			}
			
		};
        m_btn_reg = (Button)this.findViewById(R.id.btn_entrance_register);
        m_btn_login = (Button)this.findViewById(R.id.btn_entrance_login);
        m_btn_facebook = (Button)this.findViewById(R.id.btn_entrance_facebook);
        
        m_btn_reg.setOnClickListener(mclicklistener);
        m_btn_login.setOnClickListener(mclicklistener);
        m_btn_facebook.setOnClickListener(mclicklistener);
    }
        
}
